<?php

declare(strict_types=1);

namespace app\shop\model\decorate;

use sheep\model\Common;

class Page extends Common
{
    protected $name = 'shop_decorate_page';

    protected $append = [
        // 'type_text'
    ];

    public function getPageAttr($value, $data)
    {
        return json_decode($value, true);
    }

    public static function buildData($template)
    {
        foreach ($template['home']['data'] as $data) {
            switch ($data['type']) {
                case 'goodsCard':
                    break;
            }
        }
        //    exit();
    }
}
